package com.ccnf.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("schedule_task")
public class ScheduleTask extends Model<ScheduleTask> {

    @TableId("time_id")
    private Long timeId;

    @TableField("task_desc")
    private String taskDesc;

    @TableField("is_run")
    private Integer isRun;

    @TableField("is_success")
    private Integer isSuccess;

    @TableField("runtime")
    private Integer runtime;

    @Override
    protected Serializable pkVal() {
        return timeId;
    }
}